package cn.edu.hunau.java.week02.day05;

import org.junit.Test;

import java.io.UnsupportedEncodingException;

public class ExTest {
    @Test
    public void testEx() throws Exception{
        try {
            String s1 = "抗日胜利80周年";
            byte[] bytes = s1.getBytes("hehe");
            System.out.println("测试语句...");
        }catch (UnsupportedEncodingException e){
            System.out.println("出现 UnsupportedEncodingException");
            throw e;
        }catch (Exception e){
            System.out.println("出现 Exception");
            throw e;
        }
    }
}
